﻿using JESAI.DynamicCodeRun.Providers;
using JESAI.MonacoRoslynComplete.Builders;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.FileProviders;
using System.Configuration;
using System.Reflection;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class DependencyInjectionExtensions
    {
        public static IServiceCollection AddDynamicCodeRun(this IServiceCollection services)
        {
            services.AddSingleton<IDynamicCodeRunProvider, DynamicCodeRunProvider>();
            return services;
        }

        public static IApplicationBuilder UseDynamicCodeRun(this IApplicationBuilder app)
        {
            return app;
        }
    }
}
